home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 17
/
CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso
/
CUCD
/
Programming
/
DiceSource
/
master
/
Examples
/
Shared_Lib
/
init.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-02-01
|
412b
|
33 lines
/*
* INIT.C
*/
#include "defs.h"
Prototype void InitC(void);
Prototype void UnInitC(void);
Prototype SignalSemaphore SemLock;
Prototype List StrList;
SignalSemaphore SemLock;
List StrList;
void
InitC(void)
{
NewList(&StrList);
InitSemaphore(&SemLock);
}
void
UnInitC(void)
{
Node *node;
while (node = RemHead(&StrList))
FreeMem(node, sizeof(Node) + strlen(node->ln_Name) + 1);
}